{
  "properties" : { },
  "id" : "20eb74247a1b4c768c5c75de199c43cd",
  "script" : null,
  "groupId" : "e6cd7933a0e746b8b4af97af80c9c45c",
  "name" : "all",
  "createTime" : null,
  "updateTime" : 1728705712204,
  "lock" : null,
  "createBy" : null,
  "updateBy" : null,
  "path" : "/all/{bizCode}/{dbType}",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\r\n  \"ids\": \"82e72aeb6a15412f9c6f6e5af509d51d\"\r\n}",
  "headers" : [ ],
  "paths" : [ {
    "name" : "bizCode",
    "value" : "staff",
    "description" : null,
    "required" : true,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  }, {
    "name" : "dbType",
    "value" : "search",
    "description" : null,
    "required" : true,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ],
  "responseBody" : "{\n    \"status\": 1,\n    \"msg\": \"系统内部出现错误\",\n    \"data\": null,\n    \"timestamp\": 1728705155805,\n    \"requestTime\": 1728705155782,\n    \"executeTime\": 23\n}",
  "description" : null,
  "requestBodyDefinition" : {
    "name" : "",
    "value" : "",
    "description" : "",
    "required" : false,
    "dataType" : "Object",
    "type" : null,
    "defaultValue" : null,
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ {
      "name" : "ids",
      "value" : "82e72aeb6a15412f9c6f6e5af509d51d",
      "description" : "",
      "required" : false,
      "dataType" : "String",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    } ]
  },
  "responseBodyDefinition" : {
    "name" : "",
    "value" : "",
    "description" : "",
    "required" : false,
    "dataType" : "Object",
    "type" : null,
    "defaultValue" : null,
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ {
      "name" : "status",
      "value" : "1",
      "description" : "",
      "required" : false,
      "dataType" : "Integer",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "msg",
      "value" : "系统内部出现错误",
      "description" : "",
      "required" : false,
      "dataType" : "String",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "data",
      "value" : "null",
      "description" : "",
      "required" : false,
      "dataType" : "Object",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "timestamp",
      "value" : "1728705146364",
      "description" : "",
      "required" : false,
      "dataType" : "Long",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "requestTime",
      "value" : "1728705146334",
      "description" : "",
      "required" : false,
      "dataType" : "Long",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "executeTime",
      "value" : "30",
      "description" : "",
      "required" : false,
      "dataType" : "Integer",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    } ]
  }
}
================================
import magic
var type = path.dbType
var data = body
var bizMap = {
    "staff": "tb_res_staff" // 人员信息
}
var tn = bizMap[path.bizCode]
var getColumn = ()=>{
    return magic.call("post","/db/column",{
        body: {tn}
    })
}
var saveFun = ()=>{
    return magic.call("post","/db/",{
        body: {tn,data}
    })
}
var delFun = ()=>{
    return magic.call("post","/db/delete",{
        body: {tn,"ids":body.ids}
    })
}
var queryFun = ()=>{
    return magic.call("post","/db/search",{
        body: {tn,data,wheres:""}
    })
}
if ("column".equals(type)){
    var r = getColumn()
    exit r.status, r.msg,r.data
}
if ("save".equals(type)){
    var r = saveFun()
    exit r.status, r.msg,r.data
}
if ("delete".equals(type)){
    var r = delFun()
    exit r.status, r.msg,r.data
}
if ("search".equals(type)){
    var r = queryFun()
    // return r
    exit r.status, r.msg,r.data
}